package com.loe.test;

import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;

import com.loe.mvp.BaseActivity;
import com.loe.mvp.util.PopuperList;
import com.loe.router.Router;

@Router("main")
public class MainActivity extends BaseActivity
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        final PopuperList popuperList = new PopuperList(this, 300);

        popuperList.setStrings("String", "Number", "Boolean");
        popuperList.setGravity(Gravity.CENTER);
        popuperList.setTextSize(12);
        popuperList.setPaddingV(10);
        popuperList.setRadius(3);

        final View button = findViewById(R.id.button);

        button.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View view)
            {
                popuperList.show(button);
                toast("是的是的");
            }
        });
    }
}